package com.tipcp.equip.collect.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.DateFormat;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class EquipEsModel {
    /**
     * 这里的ID采用UUID
     */
    @Id
    private String id;
    /**
     * 设备名称
     */
    private String equipName;
    /**
     * 设备编号
     */
    private String equipNum;
    /**
     * 温度
     */
    private float temperature;
    /**
     * 压力
     */
    private float pressure;
    /**
     * 湿度
     */
    private float humidity;
    /**
     * 振动采集图片
     */
    private String vibratePicture;
    /**
     * 采集时间
     */
    @Field(type = FieldType.Date,format = DateFormat.date_hour_minute_second)
    private Date collectTime;
}
